export const PAGE_CODE = 'dcs-afterSales-serviceActivity';
import {EnumItem, Enum} from 'Shared/utils/enumType';
const CN = 'zh-CN';
import {PAGE} from '../constants';

const EMPTY_ARRAY = [];
export const PERMISSION = {
    update: 'update',
    add: 'add',
    publish: 'publish',
    abandon: 'abandon',
};

export const DEFAULT_QUERY_OPTION = {
    code: '',
    serviceName: '',
    dealerId: '',
    brandId: '',
    serviceType: undefined,
    chargeMode: undefined,
    status: undefined,
    scope: undefined,
    startTime: EMPTY_ARRAY,
    endTime: EMPTY_ARRAY,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
export const serviceActivityScope = Object.freeze({
    __proto__: Enum,
    指定车辆清单: 1,
    指定车辆条件: 2,
    properties: Object.freeze({
        '1': Object.freeze({
            __proto__: EnumItem,
            [CN]: '指定车辆清单',
        }),
        '2': Object.freeze({
            __proto__: EnumItem,
            [CN]: '指定车辆条件',
        }),
    })
});
